package br.ufpe.cin.mac.util;

import java.util.ArrayList;

/**
 * Class Queue
 * 
 * @author Rafael Roque
 * @author Osmany
 *
 */
public class Queue {

	private String NMQueue;

	private ArrayList<Topic> topics;

	public Queue(String pNMQueue) {
		this.NMQueue = pNMQueue;
	}

	public ArrayList<Topic> getTopics() {
		return topics;
	}

	public ArrayList<Topic> getAllTopics() {
		return topics;
	}

	public Topic getTopic(int pIndex) {
		return this.topics.get(pIndex);
	}

	public int getIndex(Topic pTopic) {
		return this.topics.indexOf(pTopic);
	}

	public void addTopic(Topic topic) {
		this.topics.add(topic);
	}

	public String getNMQueue() {
		return NMQueue;
	}

}
